package com.qiuling.iot.service;

import com.qiuling.iot.vo.req.RolePermissionOperationReqVO;

import java.util.List;

/**
 * @Author：zhangqiang
 * @Description：
 * @Date：Created in 17:07 2020/2/11
 * @Modified By：
 */
public interface RolePermissionService {

    void addRolePermission(RolePermissionOperationReqVO vo);

    List<String> getRoleIdsByPermissionId(String permissionId);

    int removeRoleByPermissionId(String permissionId);

    List<String> getPermissionIdsByRoleId(String roleId);

    int removeByRoleId(String roleId);

    List<String> getPermissionIdsByRoles(List<String> roleIds);
}
